package de.reminder.shared.model;

import java.util.List;
import javax.persistence.Transient;
import com.google.gwt.user.client.rpc.IsSerializable;

public class FacebookUser implements IsSerializable {

	private String id;	
	private String name;	
	private List<FacebookUser> friends;
	
	private FacebookUser(){}
	
	public FacebookUser(String id, String name) {
		this.id = id;
		this.name = name;
	}
	
	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}
	
	public String getProfilePictureURL(){
		return "https://graph.facebook.com/"+id+"/picture?type=large";
	}
	
	public List<FacebookUser> getFriends(){
		return friends;
	}
	
	public void setFriends(List<FacebookUser> friends){
		this.friends = friends;
	}
}
